package com.mall.db.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mall.db.mapper.UmsResourceCategoryMapper;
import com.mall.pojo.UmsResourceCategory;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class UmsResourceCategoryApilmpl implements UmsResourceCategoryApi {
    @Autowired
    private UmsResourceCategoryMapper umsResourceCategoryMapper;

    //查询所有后台资源分类
    @Override
    public List<UmsResourceCategory> listAll() {
        LambdaQueryWrapper<UmsResourceCategory> wrapper = new LambdaQueryWrapper<>();
        return umsResourceCategoryMapper.selectList(wrapper);
    }
}
